package com.jade.linkong.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jade.common.annotation.Excel;
import com.jade.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 事项警报日志对象 lk_matter_alarm_log
 * 
 * @author jade
 * @date 2020-07-23
 */
public class LkMatterAlarmLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 事项id */
    @Excel(name = "事项id")
    private Long matterProjectId;

    /** 事项名称 */
    @Excel(name = "事项名称")
    private String matterProjectName;

    /** 警报类型(1红灯 2黄灯) */
    @Excel(name = "警报类型(1红灯 2黄灯)")
    private Integer lightType;

    @Excel(name = "企业联系人")
    private String leader;


    /** 警报时间 */
    @Excel(name = "警报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date alarmTime;

    @Excel(name = "责任单位id")
    private Integer mainOrgId;

    @Excel(name = "责任单位名称")
    private String mainOrgName;

    public Integer getMainOrgId() {
        return mainOrgId;
    }

    public void setMainOrgId(Integer mainOrgId) {
        this.mainOrgId = mainOrgId;
    }

    public String getMainOrgName() {
        return mainOrgName;
    }

    public void setMainOrgName(String mainOrgName) {
        this.mainOrgName = mainOrgName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setMatterProjectId(Long matterProjectId) 
    {
        this.matterProjectId = matterProjectId;
    }

    public Long getMatterProjectId() 
    {
        return matterProjectId;
    }
    public void setMatterProjectName(String matterProjectName) 
    {
        this.matterProjectName = matterProjectName;
    }

    public String getMatterProjectName() 
    {
        return matterProjectName;
    }
    public void setLightType(Integer lightType) 
    {
        this.lightType = lightType;
    }

    public Integer getLightType() 
    {
        return lightType;
    }
    public void setAlarmTime(Date alarmTime) 
    {
        this.alarmTime = alarmTime;
    }

    public Date getAlarmTime() 
    {
        return alarmTime;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public LkMatterAlarmLog() {}

    public LkMatterAlarmLog(Long projectId, String projectName, Long matterProjectId, String matterProjectName, Integer lightType, Date alarmTime) {
        this.projectId = projectId;
        this.projectName = projectName;
        this.matterProjectId = matterProjectId;
        this.matterProjectName = matterProjectName;
        this.lightType = lightType;
        this.alarmTime = alarmTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("matterProjectId", getMatterProjectId())
            .append("matterProjectName", getMatterProjectName())
            .append("lightType", getLightType())
            .append("alarmTime", getAlarmTime())
            .toString();
    }
}
